<template>
  <div class="app-container">
    <el-form ref="queryFormRef" :model="queryParams">
      <el-form-item label="树形控件地区编码">
        {{ queryParams.regionCodeTree }}
      </el-form-item>
      <el-form-item label="树形控件">
        <jmash-region-tree
          v-model="queryParams.regionCodeTree"
          clearable
          placeholder="请选择地区"
        />
      </el-form-item>
      <el-form-item label="级联控件地区编码">
        {{ queryParams.regionCodeCascader }}
      </el-form-item>
      <el-form-item label="级联控件">
        <jmash-region-cascader
          style="width: 100%"
          v-model="queryParams.regionCodeCascader"
          clearable
          placeholder="请选择地区"
        />
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import JmashRegionTree from "@/components/JmashRegionTree/index.vue";
import JmashRegionCascader from "@/components/JmashRegionCascader/index.vue";

const queryParams = ref({
  regionCodeTree: "141024100",
  regionCodeCascader: ["14", "1410", "141024", "141024100", "141024100231"],
});
</script>
